package com.szyportal.custom.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.szyportal.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.szyportal.common.annotation.Excel;

/**
 * 案例展示对象 sp_w_case
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
public class WCase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 前一条编号 */
    @Excel(name = "前一条编号")
    private Long prewId;

    /** 后一条编号 */
    @Excel(name = "后一条编号")
    private Long nextId;

    /** 简介 */
    @Excel(name = "简介")
    private String intro;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 详细内容 */
    @Excel(name = "详细内容")
    private String content;

    /** 点击次数 */
    @Excel(name = "点击次数")
    private Long clickCount;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPrewId(Long prewId) 
    {
        this.prewId = prewId;
    }

    public Long getPrewId() 
    {
        return prewId;
    }

    public void setNextId(Long nextId) 
    {
        this.nextId = nextId;
    }

    public Long getNextId() 
    {
        return nextId;
    }

    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setClickCount(Long clickCount) 
    {
        this.clickCount = clickCount;
    }

    public Long getClickCount() 
    {
        return clickCount;
    }

    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("prewId", getPrewId())
            .append("nextId", getNextId())
            .append("intro", getIntro())
            .append("title", getTitle())
            .append("img", getImg())
            .append("publishTime", getPublishTime())
            .append("content", getContent())
            .append("clickCount", getClickCount())
            .append("author", getAuthor())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
